package cc.loach.homekit.hap.controlled.device.loach._lightbulb._light._lightbulb;

import cc.loach.homekit.hap.controlled.device.loach._lightbulb._light._lightbulb.properties.On;
import cc.loach.homekit.hap.typedef.accessory.HapService;
import cc.loach.xiot.spec.definition.urn.ServiceType;

/**
 * 灯泡
 */
public class Lightbulb extends HapService {

    public static final int IID = 10;
    public static final String TYPE = "urn:homekit-spec:service:lightbulb:00000043:loach:light:1";

    public Lightbulb() {
        super(IID, new ServiceType(TYPE));
        super.properties().put(On.IID, new On());
    }

    /**
     * Property: 开关
     */
    public On _on() {
        return (On) properties().get(On.IID);
    }

}
